#include <new>

#include "Class/Manager/Graphics.hpp"

namespace		Manager
{
  Graphics::Graphics()
	:	AManager(false),
		_Window(new (std::nothrow) sf::RenderWindow),
		_Config(),
		_Color(0, 0, 0)
  {
	this->_isValid = !(_Window == NULL);
  }

  Graphics::Graphics(Configuration const &c)
	:	AManager(false),
		_Window(new (std::nothrow) sf::RenderWindow),
		_Config(),
		_Color(0, 0, 0)
  {
	this->SetConfiguration(c);
	this->_isValid = !(_Window == NULL);
  }


  Graphics::~Graphics() throw()
  {
	if (this->_Window)
	  delete this->_Window;
  }
}
